/**
 * Created by Steven_Shan on 2018/10/10.
 */


//正则法获取参数
function getQueryString(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}

function copyImg(div) 
{ 
	console.log("复制ing：")
	//var div = document.getElementById('divId'); 
	div.contentEditable = 'true'; 
	var controlRange; 
	if (document.body.createControlRange) { 
	controlRange = document.body.createControlRange(); 
	controlRange.addElement(div); 
	controlRange.execCommand('Copy'); 
	} 
	div.contentEditable = 'false'; 
} 